<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    function changeImg() {
        let imgObj = document.getElementById("codeImg");
        imgObj.src = "/checkCode?" + Math.random();
    }
</script>

<body>
<a href="/user/del/1">点击删除</a>
<div>
    验证码 <img src="/checkCode" alt="" id="codeImg">
    <a href="javascript:changeImg()">看不清换一张</a>

</div>

</body>
</html>